import request from '@/utils/request'
// 获取列表
export function list(params) {
  return request({
    url: '/gen/scheme/list',
    method: 'get',
    params: params
  })
}

export function genCode(obj) {
  return request({
    url: '/gen/scheme/gen-code',
    method: 'put',
    data: obj
  })
}
// 获取列表
export function genMenu(params) {
  return request({
    url: '/gen/scheme/queryMenu',
    method: 'get',
    params: params
  })
}
// 获取信息
export function info(id) {
  return request({
    url: '/gen/scheme/' + id,
    method: 'get'
  })
}

// 添加
export function add(params) {
  return request({
    url: '/gen/scheme',
    method: 'post',
    data: params
  })
}
export function previewCode(id) {
  return request({
    url: '/gen/scheme/preview/' + id,
    method: 'get'
  })
}
// 修改
export function update(params) {
  return request({
    url: '/gen/scheme',
    method: 'put',
    data: params
  })
}
// 删除
export function del(params) {
  return request({
    url: '/gen/scheme',
    method: 'delete',
    data: params
  })
}



